<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">站点管理</a></li>
            <li class="active"><a href="javascript:;">站点公告</a></li>
        </ul>
        <?php execute_alert_message();?>
        <div class="product-view-area">
            <p>站点公告</p>
            <a href="<?php echo site_url('tourismheadline/add')?>">添加</a>
        </div>
        <div class="yunfei-templete-grid">
            <?php if ($page_list->num_rows() > 0) :?>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th width="100">编号</th>
                            <th width="100">主题</th>
                            <th width="100">标题</th>
                            <th width="100">状态</th>
                            <th width="120">排序</th>
                            <th width="120">访问量</th>
                            <th width="100">创建时间</th>
                            <th width="100">更新时间</th>
                            <th width="120">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($page_list->result() as $key=>$item):?>
                        <tr>
                            <td><?php echo $item->id;?></td>
                            <td><?php echo $item->name;?></td>
                            <td><?php echo $item->title?></td>
                            <td><?php echo $item->status == 1 ? '启用' : '禁用'; ?></td>
                            <td><?php echo $item->sort;?></td>
                            <td><?php echo $item->visit_num;?></td>
                            <td><?php echo $item->created_at?></td>
                            <td><?php echo $item->updated_at?></td>
                            <td>
                            	<a class="btn btn-default btn-xs" href="<?php echo site_url('tourismheadline/edit/'.$item->id)?>">编辑</a>
                            	<a class="btn btn-danger btn-xs" href="<?php echo site_url('tourismheadline/delete/'.$item->id)?>" onclick="return confirm('确定删除吗')">删除</a>
                            </td>
                        </tr>
                        <?php endforeach;?>
                    </tbody>
                </table>
                <div class="your-page pagination pagination-right"><?php echo $pg_link;?></div>
            <?php else :?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>